finding perimeter with a missing side